﻿<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

  <xsl:output encoding="UTF-8"
              method="xml"
              omit-xml-declaration="yes"
              indent="no"
              doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
              doctype-system="DTD/xhtml1-strict.dtd"/>

  <xsl:variable name="Root" select="/page/settings/url" />
  <xsl:variable name="Files" select="/page/settings/files_url" />
  <xsl:variable name="Images" select="/page/settings/images_url" />
  <xsl:variable name="Settings" select="/page/settings" />
  <xsl:variable name="Controller" select="/page/settings/controller" />
  <xsl:variable name="Action" select="/page/settings/action" />
  <xsl:variable name="This" select="/page/settings/this" />
  <xsl:variable name="This_without_lang" select="/page/settings/this_without_lang" />
  <xsl:variable name="Main" select="/page/content/Main" />
  <xsl:variable name="User" select="/page/content/auth-info" />
  <xsl:variable name="Content" select="/page/content" />
  <xsl:variable name="Cats" select="/page/content/Cats" />
  <xsl:variable name="Cat" select="/page/content/@cat" />
  <xsl:variable name="Form" select="/page/content/Main/form" />
  <xsl:variable name="Static" select="/page/content/static" />
  <xsl:variable name="Date" select="/page/content/current-date" />
  <xsl:variable name="Lang" select="/page/settings/lang" />
  <xsl:variable name="Int" select="/page/content/interface" />
  <xsl:variable name="Cart" select="/page/content/cart" />

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="page">
    <html>
      <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <xsl:choose>
          <xsl:when test="$Content/ceo_title = ''">
            <title>
              <xsl:value-of select="$Settings/title"/>
            </title>
          </xsl:when>
          <xsl:otherwise>
            <title>
              <xsl:value-of select="$Content/ceo_title"/>
            </title>
          </xsl:otherwise>
        </xsl:choose>

        <meta name="description" content="{$Content/ceo_desc}"/>
        <meta name="keywords" content="{$Content/ceo_keywords}"/>

        <script type="text/javascript" src="/js/jq.js">/**/</script>

        <script type="text/javascript" src="/js/system.js">/**/</script>

        <script src="http://www.openlayers.org/api/2.12/OpenLayers.js" type="text/javascript"></script>
        <script src="http://maps.google.com/maps/api/js?v=3.2&amp;sensor=false&amp;language=uk"></script>
        <script src="http://svn.osgeo.org/metacrs/proj4js/trunk/lib/proj4js-combined.js" type="text/javascript"></script>

        <script src="/js/ru2.js"></script>

        <script src="/js/map/config_print.js"></script>
        <link href="/css/kadastrova-karta-print.css" rel="stylesheet" type="text/css" />
      </head>

      <body>
        <input type="button" value="Друкувати" onclick="window.print();"/>
        <div id="permalink" style="display:none">
        </div>
        <div class="map-wrap" id="map" style="width: 560px; height: 560px;">
        </div>
      </body>

    </html>
  </xsl:template>



</xsl:stylesheet>